<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button id="btn">第三方登录</button>
</body>
<script>
    const btn=document.getElementById("btn")
    btn.onclick=function(){
        let client_id='858434d2e018d39cf53fd56d72671cebfc57e5fd456854f8d9988162b92b7cb6'
        let redirect_uri=`http://localhost:3000/oauth/giteeRedirectUri`
        window.location.href = `https://gitee.com/oauth/authorize?client_id=${client_id}&redirect_uri=${redirect_uri}&response_type=code`
    }
</script>
</html>